import App from '@/App.vue';
import { registerPlugins } from '@core/utils/plugins';
import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/index.css';
import { createPinia } from 'pinia';
import { createApp } from 'vue';
import './assets/styles/index.css';

const pinia = createPinia();


// Styles
import '@core/scss/template/index.scss';
import '@styles/styles.scss';
//日期选择器中文化
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import 'dayjs/locale/zh-cn';
import locale from 'element-plus/es/locale/lang/zh-cn';

// Create vue app
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(ElementPlus, { locale });
app.use(pinia);
// Register plugins
registerPlugins(app)

// Mount vue app
app.mount('#app')
